package com.zkc.stume.controller;

import ch.qos.logback.core.net.SyslogOutputStream;
import com.sun.org.apache.xpath.internal.operations.Gt;
import com.zkc.stume.bean.Classification;
import com.zkc.stume.service.ClassificationService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(description = "分类")
public class ClassificationController {

    @Autowired
    private ClassificationService classificationService;

    /*分类的下拉框*/
    @GetMapping("/fenleiqu")
    public List<Classification> fenleiqu(){
        List<Classification> lists= classificationService.fenleiALL();
        return lists;
    }


}
